/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sessionBeans;

import entityBeans.UserEntity;
import javax.ejb.Local;

/**
 *
 * @author h09577
 */
@Local
public interface UserSessionBeanLocal {

    UserEntity login(String email, String password1);
    UserEntity register(String email, String password, String pseudo, 
            String name, String firstname);

    boolean testNewUserMail(String email);

    boolean testNewUserPseudo(String pseudo);

    UserEntity editMyAccount(UserEntity userConnected, String pseudo, String name, String firstname);

    boolean testNewUserPseudoUpdate(Long id, String pseudo);

    UserEntity editMyPassword(UserEntity userConnected, String password1);

    public UserEntity editMySignature(UserEntity userConnected,String signature);
}
